{% extends "user/base.html" %}{% load i18n %} 
{% block title %}{% trans "Addressbook List title" %}{% endblock %}
{% block content %}
<div>
	<div>
		<a href="/addressbook/new/">{% trans "add address book" %}</a>
	</div>
	{% if user and addressbooks%}

	<table>
		{% for book in addressbooks %}
		<tr>
			<td>
				{% trans "Addressbook name" %}:
			</td>
			<td>
				{{ book.name }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook phone" %}:
			</td>
			<td>
				{{ book.phone }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook email" %}:
			</td>
			<td>
				{{ book.email }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook address" %}:
			</td>
			<td>
				{{ book.address }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook postnum" %}:
			</td>
			<td>
				{{ book.postnum }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook province" %}:
			</td>
			<td>
				{{ book.province }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook city" %}:
			</td>
			<td>
				{{ book.city }}
			</td>
		</tr>
		<tr>
			<td>
				{% trans "Addressbook district" %}:
			</td>
			<td>
				{{ book.district }}
			</td>
		</tr>
		<tr>
			<td>
				&nbsp;
			</td>
			<td>
				<a href="/addressbook/{{book.id}}/">{% trans "Addressbook edit" %}</a>
				<a href="/addressbook/{{book.id}}/delete/">{% trans "Addressbook delete" %}</a>
			</td>
		</tr>

		{% endfor%}
	</table>
	{% else%} {% trans "no address book!" %} {% endif %}
</div>
{% endblock %}
